import requests
url = "https://m.douban.com/rexxar/api/v2/subject/recent_hot/movie"
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36',
    'referer':'https://movie.douban.com/explore'
}
params = {
    'start':0,
    'limit':200,
    'ck':'efdK'
}
#创建get请求
resp = requests.get(url,headers=headers,params=params)
print(resp.encoding)
print(resp.status_code)
print(resp.text)